package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.Employee;
import com.itheima.jsonresult.JsonResult;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author linying
 * @since 2022-10-13
 */
public interface EmployeeService extends IService<Employee> {

    JsonResult add(Employee employee);

    JsonResult put(Employee employee);

    JsonResult login(Employee employee);

    JsonResult logout(HttpServletRequest request);

    JsonResult getPage(String name, Integer page, Integer pageSize);

    JsonResult getEmployeeById(String id);
}
